<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="${pageContext.request.contextPath}/user/post.do" method="post">
	<textarea name="helpinfo" rows="5" cols="60"></textarea></br>
	<select name="hid" id="hid">
		<c:forEach items="${hobbylist}" var="hobby">
			<option value="${hobby.hid}">${hobby.hinfo}</option>
		</c:forEach>
	</select>
	<button type="submit">救急提交</button>
	</form>
	<ul>
		<c:forEach items="${helpsetlist}" var="helpset">
			<li>
			<div id="purl">
			<img src="${helpset.purl}" />
			</div>
			<div id="uname">${helpset.uname}</div>
			<div id="helpinfo">${helpset.helpinfo}</div>
			<div id="helptime">${helpset.helptime}</div>
			<button type="button">评论</button>
			<button type="button" onclick="location.href='${pageContext.request.contextPath}/user/delete.do?helpid=${helpset.helpid}&uid=${helpset.uid}'" >删除</button>
			</li>		
		</c:forEach>
	</ul>
	<script src="js/jquery.js"></script>
	<script type="text/javascript">
	
	</script>
</body>
</html>